@import "../_style/base.less";

.wdmb-Switch {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    .wdmb-Switch-disabled {
        filter: grayscale(100%);
        filter: gray;
    }
    .wdmb-Switch-btn {
        position: relative;
        display: inline-block;
        box-sizing: border-box;
        width: 44*@hd;
        height: 22*@hd;
        vertical-align: middle;
        border-radius: 20*@hd;
        border: 1px solid transparent;
        background-color: rgba(0, 0, 0, .25);
        padding: 1px 0;
        cursor: pointer;
        -webkit-transition: all .36s;
        transition: all .36s;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        display: table;
        .wdmb-Switch-inner {
            color: #fff;
            font-size: 12*@hd;
            width: 50%;
            height: 100%;
            text-align: center;
            display: table-cell;
            vertical-align: middle;
        }
        .wdmb-Switch-bar {
            width: 50%;
            height: 100%;
            position: absolute;
            top: 0px;
            left: 0;
            background: #fff;
            border-radius: 20*@hd;
            transition: all 0.2s ease;
        }
    }
    .wdmb-Switch-checked {
        background-color: #108ee9;
        .wdmb-Switch-bar {
            left: 50%;
        }
    }
}